import React from 'react';
import {connect} from 'react-redux'
import { bindActionCreators } from 'redux'

import * as userinfoActions from '../../actions/userinfo'
import Gamestyle from './game.css'
import DetailChil from './detail'

class Detail extends React.Component{
    constructor(props){
        super(props);
        this.state = {

        };
    }
    render(){
        return(
            <div className={Gamestyle.container}>
                <div className={Gamestyle.title}>
                    <div className={Gamestyle.back} onClick={this.goBack.bind(this)}></div>
                    游戏界面
                </div>
                <DetailChil />
            </div>
        )
    }
    goBack(){
        this.props.history.goBack()
    }

}
function mapStateToProps(state){
    return{

    }
}
function mapDispatchToProps(dispatch){
    return{
        actions: bindActionCreators(userinfoActions,dispatch)
    }
}

export default connect(
    mapStateToProps,
    mapDispatchToProps
)(Detail)
